package com.xxh.dataaccess.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxh.dataaccess.dto.VideoDto;
import com.xxh.dataaccess.entity.Movie;
import com.xxh.dataaccess.entity.User;
import com.xxh.dataaccess.entity.Video;

public interface UserService extends IService<User> {

    User findByUserName(String userName);

    IPage<Video> getCollectionByUid(Integer uid,Integer cur,Integer size);


    IPage<Movie> getMovieCollectionByUid(Integer uid, Integer cur, Integer size);

    IPage<VideoDto> gethistoryByUid(Integer uid, Integer cur, Integer size);

    public String insert(User user);

}
